import numpy as np


def gen_golden_data_complex_mul():
    # 生成随机输入数据
    dtype = np.complex64
    x_shape = [2048]
    y_shape = [2048]
    output_shape = [2048]

    #x = np.random.uniform(-100, 100, x_shape).astype(dtype) 
    #y = np.random.uniform(-100, 100, y_shape).astype(dtype)
    x=  np.random.uniform(-10000, 10000, x_shape).astype(np.float32)+1j* np.random.uniform(-10, 10, x_shape).astype(np.float32)
    y=  np.random.uniform(-10000, 10000, y_shape).astype(np.float32)+1j* np.random.uniform(-10, 10, y_shape).astype(np.float32)
   
    #np.set_printoptions(threshold = np.inf) 
    print(x)
    print(y)
    golden = (x*y).astype(dtype)

    x.astype(dtype).tofile("./input/input_x.bin")
    y.astype(dtype).tofile("./input/input_y.bin")
    golden.tofile("./output/golden.bin")



if __name__ == "__main__":
    gen_golden_data_complex_mul()
